package com.soft.trading;

import java.util.HashMap;
import java.util.Map;

/**
 * 配置管理 - 定义不同App的操作流程
 */
public class OperationConfigManager {
    private static final String TAG = "OperationConfigManager";

    public static Map<String, Object> getWechatConfig() {
        Map<String, Object> config = new HashMap<>();

        // 微信登录流程配置
        config.put("package_name", "com.tencent.mm");

        // 登录按钮配置
        Map<String, String> loginButton = new HashMap<>();
        loginButton.put("id", "com.tencent.mm:id/login_button");
        loginButton.put("text", "登录");
        loginButton.put("description", "登录按钮");
        config.put("login_button", loginButton);

        // 手机号输入框配置
        Map<String, String> phoneInput = new HashMap<>();
        phoneInput.put("id", "com.tencent.mm:id/phone_input");
        phoneInput.put("hint", "手机号");
        config.put("phone_input", phoneInput);

        return config;
    }

    public static Map<String, Object> getAlipayConfig() {
        Map<String, Object> config = new HashMap<>();

        config.put("package_name", "com.eg.android.AlipayGphone");

        // 支付宝登录配置
        Map<String, String> loginButton = new HashMap<>();
        loginButton.put("id", "com.eg.android.AlipayGphone:id/login_btn");
        loginButton.put("text", "登录");
        config.put("login_button", loginButton);

        return config;
    }
}